package miiteen.twoexploit.beans;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import miiteen.common.json.jackson.LongSerialize;
import miiteen.common.utils.FieldMeta;
import miiteen.sys.base.bean.BasePo;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Name: lzhg_two_favorite
 * Des: -Bean
 * Author: qyp
 * Date: 2021-10-20
 * 收藏夹
 */
public class Favorite extends BasePo {

    @FieldMeta(name = "")
    private long id;


    @FieldMeta(name = "收藏人id")
    private long collectionid;

    @FieldMeta(name = "收藏人name")
    private String collectionName;


    @FieldMeta(name = "模块id")
    private long lzhid;

    @FieldMeta(name = "关联类型   1：兰州海关作业指导书   2：兰州海关规章制度")
    private int typecode;


    @FieldMeta(name = "关联name")
    private String typeName;

    @FieldMeta(name = "删除状态")
    private int delState;


    @FieldMeta(name = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private Date createDate;

    @FieldMeta(name = "创建人id")
    private long createId;


    @FieldMeta(name = "修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;


    @FieldMeta(name = "修改人id")
    private long updateId;



    @FieldMeta(name = "标题")
    private String title;


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @JsonSerialize(using = LongSerialize.class)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
    @JsonSerialize(using = LongSerialize.class)
    public long getLzhid() {
        return lzhid;
    }

    public void setLzhid(long lzhid) {
        this.lzhid = lzhid;
    }
    @JsonSerialize(using = LongSerialize.class)
    public long getCollectionid() {
        return collectionid;
    }

    public void setCollectionid(long collectionid) {
        this.collectionid = collectionid;
    }

    public String getCollectionName() {
        return collectionName;
    }

    public void setCollectionName(String collectionName) {
        this.collectionName = collectionName;
    }

    public int getTypecode() {
        return typecode;
    }

    public void setTypecode(int typecode) {
        this.typecode = typecode;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public int getDelState() {
        return delState;
    }

    public void setDelState(int delState) {
        this.delState = delState;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    @JsonSerialize(using = LongSerialize.class)
    public long getCreateId() {
        return createId;
    }

    public void setCreateId(long createId) {
        this.createId = createId;
    }
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
    @JsonSerialize(using = LongSerialize.class)
    public long getUpdateId() {
        return updateId;
    }

    public void setUpdateId(long updateId) {
        this.updateId = updateId;
    }
}
